|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.Grammar
public class Grammar
The Grammar class represents the <grammar> VXML element.
The grammar element is used to designate the format of some input to be
collected from the caller.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Grammar(java.lang.String mode)
Creates a new Grammar. |
|
| Method Summary | |
|---|---|
java.lang.String |
getMode()
Returns the mode of the grammar (dtmf or voice). |
void |
setMode(java.lang.String mode)
Sets the mode of the grammar (dtmf or voice). |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this grammar to the supplied set. |
protected void |
writeChildren(org.xml.sax.ContentHandler outputHandler)
Write the children(if any) of this grammar to the specified content handler. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Grammar(java.lang.String mode)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
mode - The mode of the grammar (dtmf or voice).
java.lang.IllegalArgumentException - If the specified mode is not one of "dtmf"
or "voice".
java.lang.NullPointerException - If the specified mode is null.| Method Detail |
|---|
public java.lang.String getMode()
public void setMode(java.lang.String mode)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
mode - The mode of the grammar (dtmf or voice).
java.lang.IllegalArgumentException - If the specified mode is not one of "dtmf"
or "voice".
java.lang.NullPointerException - If the specified mode is null.
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class WidgetoutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
attributes - The attribute set to write to.
java.lang.NullPointerException - If the supplied attribute set is
null.
protected void writeChildren(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the children fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||